#ifndef SYSTEM_SETTING_H
#define SYSTEM_SETTING_H

#include <QWidget>
#include "util/util.h"

namespace Ui {
class SystemSetting;
}

class SystemSetting : public QWidget
{
    Q_OBJECT

public:
    explicit SystemSetting(QWidget *parent = 0);
    ~SystemSetting();
    void displayUserLevel();

signals:
    void returnMenu();

public slots:
    void pushReturnMenu();

protected:
    void setTime();
    bool userLevelChange();
    void setPassword(const int &pbUserClicked);
    void setupWidgetStyles();
    void setupStackedWidget();
    void setupPushButtonToggles();
    void setupUserButtons();
    void setupSoftKeyboard();
    void setupPushButtonToggle(QPushButton *button);
    void setupUserButton(QPushButton *button, int user);

    bool eventFilter(QObject *watched, QEvent *event);

private:
    Ui::SystemSetting *ui;
    SoftKeyboard *softKeyboard;
};

#endif // SYSTEM_SETTING_H
